package com.lei2j.factory;

public class ChicagoPizzaStore extends PizzaStore {
	
	@Override
	public Pizza createPizza(String type) {
		PizzaIngredientFactory pizzaIngredientFactory = new ChicagoPizzaIngredientFactory();
		if(type.equals("cheese")) {
			return new ChicagoCheesePizza(pizzaIngredientFactory);
		}else if(type.equals("veggie")) {
			return new ChicagoVeggiePizza(pizzaIngredientFactory);
		}else return null;
	}

}
